import itertools

xfamily_names = ['张', '王', '李', '赵', '刘']
xmiddel_names = ['大', '小', '晓', '二', '三', '四']
xmale_given_names = ['狗', '宝', '蛋', '军']
xfemale_given_names = ['静', '瑞', '花', '曼']

xmale_product = list(itertools.product(xfamily_names, xmiddel_names, xmale_given_names))
xfemale_product = list(itertools.product(xfamily_names, xmiddel_names, xfemale_given_names))
# print(xmale_product)
# print(xfemale_product)

xmale_names = [x + y + z for x, y, z in xmale_product]
xfemale_names = [x + y + z for x, y, z in xfemale_product]
# print(xmale_names)
# print(xfemale_names)
